import chroma from 'chroma-js'

export const COLORMAPS = [
  { text: 'Transparency', value: 'transparency' },
  {
    text: 'Jet',
    value: chroma.scale([[0, 0, 131], [0, 60, 170], [5, 255, 255], [255, 255, 0], [250, 0, 0], [128, 0, 0]])
  },
  {
    text: 'Hot',
    value: chroma.bezier([[0, 0, 0], [230, 0, 0], [255, 210, 0], [255, 255, 255]])
  },
  {
    text: 'Viridis',
    value: chroma.scale([
      [68, 1, 84],
      [71, 44, 122],
      [59, 81, 139],
      [44, 113, 142],
      [33, 144, 141],
      [39, 173, 129],
      [92, 200, 99],
      [170, 220, 50],
      [253, 231, 37]
    ])
  },
  {
    text: 'Inferno',
    value: chroma.scale([
      [0, 0, 4],
      [31, 12, 72],
      [85, 15, 109],
      [136, 34, 106],
      [186, 54, 85],
      [227, 89, 51],
      [249, 140, 10],
      [249, 201, 50],
      [252, 255, 164]
    ])
  },

  {
    text: 'Magma',
    value: chroma.scale([
      [0, 0, 4],
      [28, 16, 68],
      [79, 18, 123],
      [129, 37, 129],
      [181, 54, 122],
      [229, 80, 100],
      [251, 135, 97],
      [254, 194, 135],
      [252, 253, 191]
    ])
  },

  {
    text: 'Plasma',
    value: chroma.scale([
      [13, 8, 135],
      [75, 3, 161],
      [125, 3, 168],
      [168, 34, 150],
      [203, 70, 121],
      [229, 107, 93],
      [248, 148, 65],
      [253, 195, 40],
      [240, 249, 33]
    ])
  }
]
